package com.example.bili.base;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.example.bili.util.ImageLoaderConfig;
import com.facebook.drawee.backends.pipeline.Fresco;

/**
 * Created      by Administrator on 2017/3/8.
 */

public abstract class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Fresco.initialize(getApplicationContext(), ImageLoaderConfig.getImagePipelineConfig(getApplicationContext()));
        setContentView(getLayoutView());
        initview();
        m_oncreate();

    }

    protected abstract void initview();

    public abstract int getLayoutView();

    protected abstract void m_oncreate();

}
